package com.currency.mall.netWork.api;

import com.currency.mall.Constant;
import com.currency.mall.entity.RechargeBean;
import com.currency.mall.entity.RechargeRecordBean;
import com.currency.mall.entity.SharesRoyaltyBean;
import com.currency.mall.entity.UserOrderBean;
import com.mifengs.commonbusines.entity.ResponseBean;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by Administrator on 2018/12/26.
 */

public interface OderApi {

    @FormUrlEncoded
    @POST(Constant.CREATE_ORDER)
    Observable<ResponseBean> createOrder(
            @FieldMap Map<String, Object> map
    );

    @GET(Constant.ROYALTY_QUERY)
    Observable<SharesRoyaltyBean> royaltyQuery(
            @QueryMap Map<String, Object> map
    );

    @GET(Constant.USER_ORDER)
    Observable<UserOrderBean> userOrder(
            @QueryMap Map<String, Object> map
    );

    @FormUrlEncoded
    @POST(Constant.SETTLEMENT)
    Observable<ResponseBean> settlement(
            @FieldMap Map<String, Object> map
    );

    @GET(Constant.CASH_ORDER)
    Observable<RechargeRecordBean> caseOrder(
            @QueryMap Map<String, Object> map
    );

    @GET(Constant.RECHARGE_ORDER)
    Observable<RechargeRecordBean> rechargeOrder(
            @QueryMap Map<String, Object> map
    );

    @GET(Constant.RECHARGE_INFO)
    Observable<RechargeBean> rechargeInfo(
            @QueryMap Map<String, Object> map
    );


}
